/*
 * 作者:熊猫
 * 日期:2017 - 3 - 16 5 - 20 - 15
 *
 */

package net.lainiao.morethread.Chapter7.demo3;

import net.lainiao.morethread.Chapter7.demo2.MyPriorityTask;

/**
 * Created by Administrator on 2017/3/16.
 */
public class Main {
    public static void main(String[] args) {
        MyThreadFactory factory=new MyThreadFactory("MyThreadFactory");
        MyTask task=new MyTask();
        Thread thread=factory.newThread(task);
        thread.start();
        try {
            thread.join();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("Main : Thread information ");
        System.out.println(thread.toString());
        System.out.println("Main over");
    }
}
